<div id="barra-painel">
<h1>Alterar informa&ccedil;&otilde;es pessoais</h1>
<form action="modulos/usuarios/acoes.php?acao=alteradados" method="post">
  <input type="hidden" name="idcliente" value="<?=$cliente["id"]?>" />
<fieldset>
  <legend>Dados Pessoais</legend>
  <table width="100%" border="0" cellpadding="2" cellspacing="2">
    <tbody>
      <tr>
        <td>E-mail</td>
        <td><input name="email" type="text" disabled id="emailcad" value="<?=$cliente["email"]?>" size="40">
        <sup style="font-size:11px; color:#999">caso deseje alterar o e-mail por favor entrar em contato.</sup></td>
      </tr>
      <tr>
        <td width="20%">Nome completo</td>
        <td width="80%"><input name="nome" type="text" id="nomecad" value="<?=$cliente["nome"]?>" size="40"></td>
      </tr>
      <tr>
        <td>Nome de apresenta&ccedil;&atilde;o</td>
        <td><input name="nomeapresente" type="text" id="nomeapresente" value="<?=$cliente["napresentacao"]?>" size="30"></td>
      </tr>
      
      
      <?php if($cliente["tipo_conta"]==0){ ?>
      <tr>
        <td>CPF</td>
        <td><input name="cpf" type="text" disabled id="cpf" onkeypress="Mascara(this,Cpf);" onkeydown="Mascara(this,Cpf);" onkeyup="Mascara(this,Cpf);" size="14" maxlength="14" value="<?=$cliente["cpf"]?>"> </td>
      </tr>
       <?php }elseif($cliente["tipo_conta"]==1){ ?>
       <tr>
        <td>CNPJ</td>
        <td><input name="cnpj" type="text" disabled id="cnpj" onkeypress="Mascara(this,Cnpj);" onkeydown="Mascara(this,Cnpj);" onkeyup="Mascara(this,Cnpj);" size="19" maxlength="14" value="<?=$cliente["cnpj"]?>"></td>
      </tr>
       <? } ?>
      
      <tr>
        <td>RG</td>
        <td><input name="rg" type="text" disabled id="rg" value="<?=$cliente["rg"]?>" size="14"></td>
      </tr>
     <!-- <tr>
        <td>Data de nascimento</td>
        <td><input name="nascimento" type="text" id="nascimento" onkeypress="Mascara(this,Data);" onkeydown="Mascara(this,Data);" onkeyup="Mascara(this,Data);" size="10" maxlength="10" value="<?=$cliente["nacimento"]?>"></td>
      </tr>-->
      <!--<tr>
        <td>Estado civil</td>
        <td><select name="estado_civil" id="estado_civil">
                 
          <option value="0" selected="selected">Selecione</option>
                 
          <option value="solteiro" <? if($cliente["estado_civil"]=="solteiro"){ echo " selected ";} ?> >Solteiro(a)</option>
                 
          <option value="casado" <? if($cliente["estado_civil"]=="casado"){ echo " selected ";} ?>>Casado(a)</option>
                 
          <option value="viuvo" <? if($cliente["estado_civil"]=="viuvo"){ echo " selected ";} ?>>Vi&uacute;vo(a)</option>
               
        </select></td>
      </tr>-->
      <tr>
        <td>Profiss&atilde;o/Atividades</td>
        <td><input name="profissao" type="text" id="profissao" value="<?=$cliente["profissao"]?>"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </tbody>
  </table>
</fieldset>
<fieldset>
  <legend>Endere&ccedil;o</legend>
  <table width="100%" border="0" cellpadding="2" cellspacing="2">
    <tbody>
      <tr>
        <td width="20%">CEP</td>
        <td width="80%"><input name="cep" type="text" id="cep" onkeypress="Mascara(this,Cep);" onkeydown="Mascara(this,Cep);" onkeyup="Mascara(this,Cep);" size="9" maxlength="9" value="<?=$cliente["cep"]?>"></td>
      </tr>
      <tr>
        <td>Cidade</td>
        <td><input name="cidade" type="text" id="cidade" value="<?=$cliente["cidade"]?>"></td>
      </tr>
      <tr>
        <td>Estado</td>
        
           <td>
           
           <select name="estado" id="estado">
                
           
          
                <option value="">Estados</option>
                
           
          
                <option value="AC" <?php if($cliente["estado"] == "AC"){ print "selected";}?> >Acre</option>
                
           
          
                <option value="AL" <?php if($cliente["estado"] == "AL"){ print "selected";}?>>Alagoas</option>
                
           
          
                <option value="AM" <?php if($cliente["estado"] == "AM"){ print "selected";}?>>Amazonas</option>
                
           
          
                <option value="AP" <?php if($cliente["estado"] == "AP"){ print "selected";}?>>Amap&aacute;</option>
                
           
          
                <option value="BA" <?php if($cliente["estado"] == "BA"){ print "selected";}?>>Bahia</option>
                
           
          
                <option value="CE" <?php if($cliente["estado"] == "CE"){ print "selected";}?>>Ceará</option>
                
           
          
                <option value="DF" <?php if($cliente["estado"] == "DF"){ print "selected";}?>>Distrito Federal</option>
                
           
          
                <option value="ES" <?php if($cliente["estado"] == "ES"){ print "selected";}?>>Esp&iacute;rito Santo</option>
                
           
          
                <option value="GO" <?php if($cliente["estado"] == "GO"){ print "selected";}?>>Goi&aacute;s</option>
                
           
          
                <option value="MA" <?php if($cliente["estado"] == "MA"){ print "selected";}?>>Maranh&atilde;o</option>
                
           
          
                <option value="MT" <?php if($cliente["estado"] == "MT"){ print "selected";}?>>Mato Grosso</option>
                
           
          
                <option value="MS" <?php if($cliente["estado"] == "MS"){ print "selected";}?>>Mato Grosso do Sul</option>
                
           
          
                <option value="MG" <?php if($cliente["estado"] == "MG"){ print "selected";}?>>Minas Gerais</option>
                
           
          
                <option value="PA" <?php if($cliente["estado"] == "PA"){ print "selected";}?>>Par&aacute;</option>
                
           
          
                <option value="PB" <?php if($cliente["estado"] == "PB"){ print "selected";}?>>Para&iacute;ba</option>
                
           
          
                <option value="PR" <?php if($cliente["estado"] == "PR"){ print "selected";}?>>Paran&aacute;</option>
                
           
          
                <option value="PE" <?php if($cliente["estado"] == "PE"){ print "selected";}?>>Pernambuco</option>
                
           
          
                <option value="PI" <?php if($cliente["estado"] == "PI"){ print "selected";}?>>Piau&iacute;</option>
                
           
          
                <option value="RJ" <?php if($cliente["estado"] == "RJ"){ print "selected";}?>>Rio de Janeiro</option>
                
           
          
                <option value="RN" <?php if($cliente["estado"] == "RN"){ print "selected";}?>>Rio Grande do Norte</option>
                
           
          
                <option value="RO" <?php if($cliente["estado"] == "RO"){ print "selected";}?>>Rond&ocirc;nia</option>
                
           
          
                <option value="RS" <?php if($cliente["estado"] == "RS"){ print "selected";}?>>Rio Grande do Sul</option>
                
           
          
                <option value="RR" <?php if($cliente["estado"] == "RR"){ print "selected";}?>>Roraima</option>
                
           
          
                <option value="SC" <?php if($cliente["estado"] == "SC"){ print "selected";}?>>Santa Catarina</option>
                
           
          
                <option value="SE" <?php if($cliente["estado"] == "SE"){ print "selected";}?>>Sergipe</option>
                
           
          
                <option value="SP" <?php if($cliente["estado"] == "SP"){ print "selected";}?>>S&atilde;o Paulo</option>
                
           
          
                <option value="TO" <?php if($cliente["estado"] == "TO"){ print "selected";}?>>Tocantins</option>
              </select></td>
      </tr>
      <tr>
        <td>Endere&ccedil;o</td>
        <td><input name="endereco" type="text" id="endereco" value="<?=$cliente["endereco"]?>"></td>
      </tr>
      <tr>
        <td>N&uacute;mero</td>
        <td><input name="numero" type="text" id="numero" value="<?=$cliente["numero"]?>"></td>
      </tr>
      <tr>
        <td>Complemento</td>
        <td><input name="complemento" type="text" id="complemento" value="<?=$cliente["complemento"]?>"></td>
      </tr>
      <tr>
        <td>Bairro</td>
        <td><input name="bairro" type="text" id="bairro" value="<?=$cliente["bairro"]?>"></td>
      </tr>
      <tr>
        <td>Refer&ecirc;ncia de endere&ccedil;o</td>
        <td><input name="refendereco" type="text" id="refendereco" value="<?=$cliente["referencia_endereco"]?>"></td>
      </tr>
    </tbody>
  </table>
</fieldset>
<fieldset>
  <legend>Telefones</legend>
  <table width="100%" border="0" cellpadding="2" cellspacing="2">
    <tbody>
      <tr>
        <td width="20%">Residencial</td>
        <td width="80%"><input name="residencial" type="text" id="residencial" onkeypress="Mascara(this,Telefone);" onkeydown="Mascara(this,Telefone);" onkeyup="Mascara(this,Telefone);" maxlength="14" value="<?=$cliente["tel_residencial"]?>">
          digite apenas n&uacute;meros</td>
      </tr>
      <tr>
        <td>Comercial</td>
        <td><input name="comercial" type="text" id="comercial" onkeypress="Mascara(this,Telefone);" onkeydown="Mascara(this,Telefone);" onkeyup="Mascara(this,Telefone);" maxlength="14" value="<?=$cliente["tel_comercial"]?>"></td>
      </tr>
      <tr>
        <td>Fax</td>
        <td><input name="fax" type="text" id="fax" onkeypress="Mascara(this,Telefone);" onkeydown="Mascara(this,Telefone);" onkeyup="Mascara(this,Telefone);" maxlength="14" value="<?=$cliente["tel_fax"]?>"></td>
      </tr>
      <tr>
        <td>Celular</td>
        <td><input name="celular" type="text" id="celular" onkeypress="Mascara(this,Telefone);" onkeydown="Mascara(this,Telefone);" onkeyup="Mascara(this,Telefone);" maxlength="14" value="<?=$cliente["tel_celular"]?>"></td>
      </tr>
    </tbody>
  </table>
</fieldset>

  <table width="100%" border="0" cellpadding="2" cellspacing="2">
    <tbody>
      <tr>
        <td>
        <input style="cursor:pointer" type="submit" class="butao_sub" value="Salvar altera&ccedil;&atilde;o" onclick="javascript: if(confirm('Deseja realmente alterar seus dados?')){ return true; }else{ return false; };" /></td>
        </tr>
    </tbody>
  </table>

</form>


</div>